import Text.Templating.Go.Data
import Text.Templating.Go.Parser
import Text.Templating.Go.Compiler

go s = case parseTemplate s of
         Left e -> error (show e)
         Right s -> putStrLn (compile s)

main = getContents >>= go
